﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Freemarker.Net.MvcWeb.Models;

namespace Freemarker.Net.MvcWeb.Controllers
{
    public class PersonController : Controller
    {
        //
        // GET: /Person/

        public ActionResult Index()
        {
            List<Person> persons = new List<Person>{
                new Person{
                    FirstName = "John",
                    LastName = "Jefferson",
                    Age = 18,
                    Gender = "M"
                },
                new Person{
                    FirstName = "May",
                    LastName = "Clinton",
                    Age = 16,
                    Gender = "F"
                },
                new Person{
                    FirstName = "Chris",
                    LastName = "Wang",
                    Age = 20,
                    Gender = "M"
                },
            };
            return View(persons);
        }

    }
}
